package com.cy.controller;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.cy.entity.InterviewRecode;
import com.cy.mapper.InterviewRecodeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: c
 * @date: 2024/3/25 16:46
 * @description:
 */

@RestController
@RequestMapping("/business")
@DS("business")
public class DemoController {

    @Autowired
    private InterviewRecodeMapper mapper;

    @RequestMapping("hello")
    public String hello() {
        List<InterviewRecode> interviewRecodes = mapper.selectList(null);
        System.out.println(interviewRecodes);
        return "hello ";
    }


}
